package com.example.moviecms2.vo;

import com.example.moviecms2.domain.Movie;

import java.util.Date;

/**
 * 电影值对象
 */
public class MovieVo {

    private Long id;
    private String name;
    private String photo;
    private Date createDate;

    public MovieVo() {
    }

    public MovieVo(Movie movie) {
        this.id = movie.getId();
        this.name = movie.getName();
        this.photo = movie.getPhoto();
        this.createDate = movie.getCreateDate();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
